package code

//go:generate codegen -type=int

// cgserver: user errors.
const (
	// ErrUserNotFound - 404: User not found.
	ErrUserNotFound int = iota + 110001

	// ErrUserAlreadyExist - 400: User already exist.
	ErrUserAlreadyExist
)

// cgserver: secret errors.
const (
	// ErrEncrypt - 400: Secret reach the max count.
	ErrReachMaxCount int = iota + 110101

	//  ErrSecretNotFound - 404: Secret not found.
	ErrSecretNotFound
)

// cgserver: policy errors.
const (
	// ErrPolicyNotFound - 404: Policy not found.
	ErrPolicyNotFound int = iota + 110201
)

// cgserver: license errors.
const (
	// ErrorLicenseTimeOut - 403: License timeout.
	ErrorLicenseTimeOut int = iota + 110301
)

const (
	// ErrorAppKeyNotFound - 404: App key not found.
	ErrorAppKeyNotFound int = iota + 110401

	// ErrorAppKeyNotEnabled - 403: App key not enabled.
	ErrorAppKeyNotEnabled

	// ErrorSignInvalid - 401: Sign invalid.
	ErrorSignInvalid
)
